package com.spring.hot;

/**
 * @author Cizai
 * @since 2022/12/01 20:10
 **/
public class 回文数 {

    public boolean isPalindrome(int x) {
        int te = 0;
        int a = x;
        while (x>0){
            te = te*10+x%10;
            x = x/10;
        }
        if (te==a){
            return true;
        }
        return false;
    }
}
